package models

// UserId 同步自 iac
type User struct {
	TimedModel

	Username string `gorm:"uniqueIndex:idx_user_email;not null;"`
	Password string `gorm:"not null;" json:"-"`
	Role     string `gorm:"type:enum('admin','normal');not null;default:normal"`
	HeadImg  string `gorm:""`
	Age      int    `gorm:"not null"`
	Sex      int    `gorm:"type:enum('1','2');not null"`
	Desc     string `gorm:""`
}
